package com.example.prodecttest.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.prodecttest.constant.BaseCommon;
import com.example.prodecttest.dao.EquipmentAttributeGroupMapper;
import com.example.prodecttest.entity.EquipmentAttributeGroup;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description:
 * @author: fan
 * @date: 2022/2/18 14:05
 * @version: 1.0
 */
@Service
public class EquipmentAttributeGroupServiceImpl extends ServiceImpl<EquipmentAttributeGroupMapper, EquipmentAttributeGroup> {

    List<EquipmentAttributeGroup> getEquipmentAttributeGroupByEquipmentTypeId(Long equipmentTypeId){

       return list(new QueryWrapper<EquipmentAttributeGroup>().lambda()
                .eq(EquipmentAttributeGroup::getEquipmentTypeId,equipmentTypeId)
                .eq(EquipmentAttributeGroup::getIsDelete, BaseCommon.NO));
    }

}
